package cn.thoughtworks.school.entities;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class CreateUserCommand {
  private String username;
  private String password;
  private String email;
  private String mobilePhone;

  private Long socialAccountId;
  private String code;
  private String org;

  public User buildUser() {
    return User.builder()
      .username(username)
      .password(password)
      .email(email)
      .mobilePhone(mobilePhone).build();
  }
}
